<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <jquery/>
</head>
<body>
<form>
<table border="1">
    <tr>
        <td>标题</td>
        <td>
            <input type="text" name="title"/>
        </td>
    </tr>
    <tr>
        <td colspan="2">
            <input type="submit"/>
        </td>
    </tr>
</table>
</form>
<script>
    $("form").submit(function(){
        var data = $(this).serialize();
        $.ajax({
            url:'index.php?m=Admin&c=Blog&a=add',
            data:data,
            type:'post',
            dataType:'JSON',
            success:function(json){
                if(json.status==1){//发表成功
                    alert(json.message);
                }else{//发表失败
                    alert(json.message);
                }
            }
        })
        return false;
    })
</script>
</body>
</html>